import request from "@/utils/request"

/**
 *
 * @param {当前页} current
 * @param {显示条数} limit
 * @param {查询条件} queryInfo
 * @returns 校企合作新闻列表
 */
export const reqGetProjectPage = (current, limit, queryInfo) =>
    request({ url: `/project/page/${current}/${limit}`,method:'POST',data:queryInfo})

/**
 * 删除新闻
 * @param {校企新闻合作id} id
 * @returns 结果
 */
export const reqRemoveShowById = (id) => request({url: `/project/${id}`,method:'delete'})

/**
 * 编辑新闻
 * @param {校企新闻} show
 * @returns 结果
 */
export const reqEditShow = (show) => request({ url: `/project/editShow`, method: 'POST',data:show})

/**
 * 添加校企新闻
 * @param {校企新闻} show
 * @returns 结果
 */
export const reqSaveShow = (show) => request({ url: `/project/addProjectShow`, method: 'POST', data: show })

/**
 *
 * @param {校企新闻id} id
 * @returns 结果
 */
export const reqGetShowById = (id) => request({ url: `/project/getProjectShow/${id}`,method: 'GET'})

/**
 * 批量删除校企
 * @param ids 校企id数组
 * @returns {AxiosPromise}
 */
export const reqrRmoveProjects = (ids) => request({ url: `/project/removeProjects`,method: 'POST',data:ids})
